// JavaScript Document

function ValidarCamposLogin(oForm){
	var oUser = oForm.user;
	var oPass = oForm.pass;
	var oMenUser = document.getElementById('mensajeUser');
	var oMenPass = document.getElementById('mensajePass');
	var bEsValido = true;
	
	oMenUser.innerHTML = "";
	oMenPass.innerHTML = "";
	
	oUser.value = oUser.value.replace(/^\s*|\s*$/g,"");
	oPass.value = oPass.value.replace(/^\s*|\s*$/g,"");
	
	if(oUser.value.length < 1){
		oMenUser.innerHTML = "*Nombre de Usuario No V&aacute;lido"
		bEsValido = false;
	}
	if(oPass.value.length < 1){
		oMenPass.innerHTML = "*Contrase&ntilde;a No V&aacute;lida";
		bEsValido = false;
		oPass.value = "";
	}
	
	return bEsValido; 
}

//****************************************************************************************//
//*					FLASH						 *//
//****************************************************************************************//

function iFlash( asrc, aw, ah ){
        document.write( "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\"" );
        document.write( "       width=\""+aw+"\"" );
        document.write( "       height=\""+ah+"\">" );
        document.write( "       <param name=\"movie\" value=\""+asrc+"\">" );
        document.write( "       <param name=\"quality\" value=\"high\">" );
        document.write( "       <embed  src=\""+asrc+"\"" );
        document.write( "               quality=\"high\"" );
        document.write( "               type=\"application/x-shockwave-flash\"" );
        document.write( "               width=\""+aw+"\"" );
        document.write( "               height=\""+ah+"\">" );
        document.write( "       </embed></object>");
}

//****************************************************************************************//
//*					END						 *//
//****************************************************************************************//